From: GPSBabel Date: Mon, 25 Feb 2019 18:34:30 +0000 (-0600) Subject: Change diff and terrain back to doubles in geo X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~8^2~37 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=83b1736c1a966dfea9adb5a79d363430ef55fd6f;p=gpsbabel.git Change diff and terrain back to doubles in geo Not part of official geo format that's widely used; apparently only used by rickrich's geo tools. --- diff --git a/geo.cc b/geo.cc index 3a737e43e..a04d3bb1a 100644 --- a/geo.cc +++ b/geo.cc @@ -74,9 +74,9 @@ static void GeoReadLoc() waypt_add_url(wpt, reader.readElementText(), a.value("text").toString()); } else if (current_tag == "/loc/waypoint/difficulty") { - wpt->gc_data->diff = reader.readElementText().toUInt() * 10; + wpt->gc_data->diff = reader.readElementText().toDouble() * 10; } else if (current_tag == "/loc/waypoint/terrain") { - wpt->gc_data->terr = reader.readElementText().toUInt() * 10; + wpt->gc_data->terr = reader.readElementText().toDouble() * 10; } else if (current_tag == "/loc/waypoint/container") { wpt->gc_data->container = wpt_container(reader.readElementText()); }